Go to the source code of this file.
| typedef void(* QMI_RESPONSE_CALLBACK)(uint8_t *qmiPacket, uint16_t qmiPacketSize, void *pResponseCallbackContext) |
This funcion prototype represents the callback which is called by the QMI service when a QMI response is received.
- Parameters
-
| [in] | qmiPacket | Response's QMI packet (note: this does not include QMUX header). |
| [in] | qmiPacketSize | Number of bytes in response's QMI packet. |
| [in] | pResponseCallbackContext | User context supplied when QMI transaction was initialized. |
This structure abstracts a QMI transaction. It is responsible for tracking a QMI request to its response.
- Parameters
-
| inUse |
- true indicates that this object has been allocated by the QMI service and is un use.
|
| transactionId |
- QMI transaction ID. Upper limit 0xffff for regular QMI services, 0xff for CTL service.
|
| messageId |
|
| pResponseCallback |
- User callback for QMI response.
|
| pResponseCallbackContext |
- User context for user callback.
|
| void QmiTransaction_Initialize |
( |
QmiTransaction * |
pThis, |
|
|
uint16_t |
transactionId, |
|
|
uint16_t |
messageId, |
|
|
QMI_RESPONSE_CALLBACK |
pResponseCallback, |
|
|
void * |
pResponseCallbackContext |
|
) |
| |
Initialize QMI transaction.
- Parameters
-
| [in] | pThis | The primary object of this call. |
| [in] | transactionId | Transaction ID obtained from a call to QmiService_GetNextTransactionId. |
| [in] | messageId | QMI message ID. |
| [in] | pResponseCallback | User function to be be called when QMI response is received. |
| [in] | pResponseCallbackContext | A user context for callback. |